home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qw12inst.zip / QRAM.TEC < prev    next >
Text File  |  1991-12-18  |  15KB  |  320 lines

  1. ID:QR QRAM
  2. Quarterdeck Technical Note #216
  3. by Michael Bolton
  4.  
  5. QRAM
  6. ====
  7.  
  8. What is QRAM?
  9. Does QRAM turn exTENded memory into exPANded memory?
  10. What do I need to run QRAM?
  11. What can QRAM do for my system?
  12.  
  13. What is QRAM?
  14. =============
  15.  
  16. QRAM is a suite of memory management utilities which add power to 80286, 
  17. 8086, and 8088 PCs and compatibles in some of the same ways that QEMM-
  18. 386 adds power to 386 PCs, allowing you to liberate more of the precious 
  19. memory below 640K.
  20.  
  21.     QRAM, on machines with appropriate memory management hardware --
  22.      Chips and Technologies Shadow RAM, or EMS 4.0 hardware AND
  23.      software, creates High RAM -- RAM placed at unused addresses
  24.      between 640K and 1MB.  This allows you to load Terminate-and-Stay-
  25.      Resident programs (TSRs), device drivers, network drivers, DOS
  26.      resources (such as BUFFERS, FILES, FCBS, and drive specifiers)
  27.      and the like into High RAM -- RAM placed at unused addresses
  28.      between 640K and 1MB.
  29.  
  30.     The VIDRAM program which comes as part of the QRAM package
  31.      allows you to "steal" a portion of memory from your EGA or VGA
  32.      video card and assign that memory to DOS, further increasing the
  33.      amount of conventional memory available to you when you are running
  34.      a program that does not need EGA or VGA graphics.
  35.  
  36.     QEXT.SYS, an XMS driver, provides access to extended memory,
  37.      and to the HMA -- 64K of extra DOS memory for applications
  38.      that know how to use this specification.  
  39.  
  40.     The BUFFERS and FILES programs allow you to allocate
  41.      additional DOS buffers and file handles on the fly, after your
  42.      machine has booted  -- and to load them into High RAM.
  43.  
  44.     Other utilities for managing memory are included.
  45.  
  46.     Finally, every copy of QRAM also comes with Manifest, the
  47.      award-winning memory analysis and reporting tool.
  48.  
  49. Most people are interested in QRAM for its abilities to load small DOS 
  50. programs, drivers, and resources into High RAM.  However, the 
  51. bewildering array of memory management standards associated with the 
  52. 8088 and 80286 architectures contributes to several common 
  53. misconceptions about what High RAM really is and how it is allocated. 
  54. This note will describe the hardware and software requirements for QRAM, 
  55. and will explain what you can expect QRAM to do for your system.
  56.  
  57.  
  58. Does QRAM turn exTENded memory into exPANded memory?
  59. =======================================================
  60.  
  61. No.  QRAM DOES NOT turn exTENded memory into exPANded memory.  In fact, 
  62. QRAM needs to find either an appropriate Shadow RAM chipset, or some 
  63. form of EMS 4.0 exPANded memory hardware with its own EMS 4.0 driver 
  64. already present, if QRAM is to load programs high.  (What constitutes 
  65. appropriate is described below.)  The 286 chip on its own does not have 
  66. the memory management features needed to make memory appear at addresses 
  67. where there is none.  The 386 chip has these (and other extremely 
  68. sophisticated memory management) features built-in, but the 286 needs 
  69. assistance from extra hardware to do this.
  70.  
  71. Several programs, (often called "LIMulators") provide the ability to 
  72. store data in exTENded memory in such a way that, to software, the 
  73. exTENded memory looks like exPANded memory.  QRAM IS NOT A PROGRAM OF 
  74. THIS TYPE.
  75.  
  76. Such programs (which are widely available, and free on many bulletin 
  77. board systems) have two important disadvantages.  First, they cannot 
  78. create exPANded memory in which programs can be run, so they cannot be 
  79. used to load TSRs, device drivers, and network software outside of 
  80. conventional memory; nor are such expanded memory emulators useful to 
  81. DESQview for multitasking.  Second, in order to provide the EMS page 
  82. frame, necessary for the emulation of EMS, they actually cost 64K (for 
  83. the EMS page frame), plus the overhead for their own code, all in 
  84. conventional memory -- which is an enormous penalty, presuming that your 
  85. goal is to liberate as much conventional memory as possible.
  86.  
  87. What do I need to run QRAM?  What can QRAM do for my system?
  88. ============================================================
  89.  
  90. QRAM's features depend on several aspects of the configuration of your 
  91. machine, including its memory management hardware and software, and its 
  92. video hardware.
  93.  
  94. It is crucially important to understand that, on a 286 without memory 
  95. managment hardware, there is NO MEMORY between 640K and 1 MB -- even on 
  96. systems with one megabyte or more of memory installed.  (Machines with 
  97. Shadow RAM constitute an exception to this; Shadow RAM is described 
  98. below.) The extended memory on your system is addressed not only above 
  99. 640K, but above the 1MB line -- and is therefore outside of DOS's 
  100. address space.  A typical one megabyte machine that doesn't have Shadow 
  101. RAM has MEMORY that occupies the 0-640K address range -- and then there 
  102. is ADDRESS SPACE, but no MEMORY between 640 and 1024K.  This address 
  103. space is reserved for system hardware and adapter boards.  The rest of 
  104. the one megabyte of MEMORY occupies address space between 1024K and 
  105. 1408K.   DOS cannot access memory which is beyond 1024K with the 
  106. exception of the HMA (1024-1088K).  Only the DOS kernel (in DOS version 
  107. 5 or later) or programs which have been specially written to take 
  108. advantage of this region may do so.  Extended memory is not useful to 
  109. QRAM, nor is it useful to any regular DOS program except as a place to 
  110. store data.  Only DOS programs which have been specifically written to 
  111. access extended memory will be able to take advantage of it.
  112.  
  113.  
  114. Machines with Shadow RAM 
  115. =========================
  116.  
  117. Shadow RAM is a way to increase the system's speed.  System and video 
  118. BIOS (Basic Input/Output Services) ROMs are addressed 8 bits at a time, 
  119. and therefore are typically slower than 16- or 32-bit RAM.  ROM 
  120. shadowing is accomplished by setting up a 384K region of memory 
  121. somewhere on the system, giving it addresses from 640K to 1MB, and 
  122. copying the code from system and video ROMs into this region.  So far as 
  123. the processor is concerned, the ROMs are still at their usual addresses, 
  124. but since the ROM code is in faster RAM, performance is improved. 
  125. Typical systems use 32K of ROM for video, and 64K or less of ROM for the 
  126. system BIOS.  Thus, most of this 384K region of memory, set aside for 
  127. ROM shadowing, is unused.
  128.  
  129.  
  130. QRAM's LOADHI Features
  131. ======================
  132.  
  133. In order for QRAM to activate its LOADHI capabilites, it must find at 
  134. least one of the following things on your machine:
  135.  
  136. 1) The Chips & Technologies NEAT, SCAT, PEAK, LEAP, or 386 Shadow RAM
  137.    chipsets; as described above, these chipsets have the ability to make
  138.    actual memory appear at addresses between 640K and 1MB when Shadow
  139.    RAM is enabled.  Machines that are equipped with these chipsets may
  140.    display the words "NEAT", "SCAT", "PEAK" or "LEAP" at some time
  141.    during the boot process.  Note that since Shadow RAM is implemented
  142.    in hardware on these types of systems, you do not need to have any
  143.    sort of software driver installed for QRAM to take advantage of your
  144.    system's Shadow RAM.  It may be necessary for you to activate the
  145.    ShadowRAM in the CMOS setup, however; QRAM cannot do this.
  146.  
  147.  
  148. 2) An EEMS (two "E"s) or EMS 4.0 board with a software driver that
  149.    provides mappable EMS pages between 640K and 1MB in addition to the
  150.    EMS page frame.  The software driver is installed in CONFIG.SYS, and
  151.    typically has the letters "EMM" somewhere in its filename.  The EMS
  152.    driver must not only be able to provide exPANded memory; it must also
  153.    be capable of creating more than four mappable pages between 640K and
  154.    1MB, as the first four mappable pages are reserved for the EMS Page
  155.    Frame.  A very few computers come with this sort of memory management
  156.    hardware already installed.
  157.  
  158.  
  159. 3) A 286 memory management unit, such as the All ChargeCard or the SOTA
  160.    Pop Card.  Though not a complete implementation of the 386
  161.    architecture, these add-on devices provide memory management most
  162.    similar to that offered by the 386 architecture.
  163.  
  164. Note that items 2 and 3 involve some sort of add-on hardware, and that 
  165. software alone WILL NOT provide the hardware assist that the 286 or 
  166. lesser processors need for QRAM to create High RAM.
  167.  
  168. Manifest's Expanded / Pages screen will tell you if your hardware and 
  169. driver is currently providing mappable pages, as can the QTEST program 
  170. described below.  Manifest's exPANded pages screen will look something 
  171. like this:
  172.  
  173. 0n00 UUUU
  174. 1n00 UUUU
  175. 2n00 UUUU
  176. 3n00 UUUU
  177. 4n00 UUUU
  178. 5n00 UUUU
  179. 6n00 UUUU
  180. 7n00 UUUU
  181. 8n00 UUUU
  182. 9n00 UUUU
  183. An00 UUUU    <-
  184. Bn00 ++UU    <-   Plus signs (+) anywhere in this
  185. Cn00 UUFF    <-   range mean that QRAM can create
  186. Dn00 FF++    <-   High RAM -- 16K for each +
  187. En00 ++++    <-
  188. Fn00 UUUU
  189.  
  190. Note that this map tells you what is being currently provided.  Your 
  191. hardware and software may be capable of creating more mappable pages; 
  192. consult the documentation for your board.  Some switch or jumper 
  193. settings, or some command-line parameters on your board's device driver 
  194. may be able to provide you with more mappable pages.
  195.  
  196. If you have an EMS board that provides only four mappable pages, pages 
  197. that are reserved for the Page Frame, and designated above by the letter 
  198. "F", you may choose to disable your use of exPANded memory in exchange 
  199. for the 64K of High RAM that QRAM may be able to provide.  This will 
  200. liberate more memory below 640K, but will curtail your access to 
  201. exPANded memory.
  202.  
  203. A further complication results from the fact that when IBM introduced 
  204. the PC-AT, the addresses from E000-EFFF (or 896-960K in decimal) were 
  205. reserved for an expansion of the system ROM.  However, the system ROM 
  206. was not expanded until the advent of the PS/2.  Unfortunately, the 
  207. address space from E000-EFFF remained unusable for any other purpose, 
  208. and to retain 100% compatibility with IBM, almost all clone makers 
  209. followed the PC-AT's example.  There were very few manufacturers who 
  210. were confident enough to break this convention, and therefore the E000-
  211. EFFF range may not be available on your machine.  Since many computers 
  212. render the E region unusable for High RAM or EMS, many expanded memory 
  213. boards also refrain from allowing High RAM to be mapped into the E 
  214. region.  Your hardware may permit you to do this.
  215.  
  216.  
  217. VIDRAM
  218. ======
  219.  
  220. If you use a VGA or EGA display adapter, the VIDRAM program in the QRAM 
  221. package allows you to gain up to 96K of extra conventional memory, at 
  222. the cost of temporarily disabling EGA or VGA graphics. This is most 
  223. useful if you are running text-based programs (such as most popular 
  224. spreadsheets, databases, and word processors).  The trade-off here is 
  225. that you give up the ability to use graphics while VIDRAM is activated, 
  226. but it can be toggled on and off with ease from the DOS prompt.
  227.  
  228.  
  229. QEXT.SYS
  230. ========
  231.  
  232. QEXT is a driver that allows Quarterdeck's DESQview to load 64K of 
  233. itself into the first 64K of extended memory.  QEXT is also an XMS 
  234. driver; that is, it manages extended memory in accordance with the HMA 
  235. and EMB aspects of the XMS specification to programs that know how to 
  236. use it.  Extended memory disk caches and network drivers are often 
  237. capable of using XMS memory, as are Microsoft Windows 3.0. and other 
  238. applications.  If you are currently using HIMEM.SYS, using QEXT instead 
  239. can help to increase the amount of conventional memory on your machine, 
  240. since QEXT can be loaded high by QRAM's LOADHI features.  QEXT requires 
  241. extended memory to be installed on your machine, and to put it to use, 
  242. you must have DESQview or applications that use the XMS specification.
  243.  
  244.  
  245. The DOS Resource Programs
  246. =========================
  247.  
  248. In DOS versions 2 and 3, each disk buffer in CONFIG.SYS uses 
  249. approximately .5K of conventional memory.  The same is true of DOS 5 if 
  250. you have chosen not to use DOS=HIGH.  QRAM's BUFFERS.COM program allows 
  251. you to specify a single BUFFER in CONFIG.SYS, and specify more buffers 
  252. later, in AUTOEXEC.BAT.  The benefit here is that these buffers, added 
  253. by BUFFERS.COM after CONFIG.SYS has run its course, may be loaded into 
  254. the High RAM that QRAM creates, resulting in substantial savings in 
  255. conventional memory.
  256.  
  257. Unlike DOS 2 and 3, BUFFERS are "brittle" in DOS 5.  Only the last group 
  258. of BUFFERS loaded is used, with the preceding going to waste.
  259.  
  260. Due to the unusual structure of DOS buffers in DOS 4, BUFFERS.COM cannot 
  261. be used at all with DOS 4.
  262.  
  263. Users of large databases, or those in network environments, will 
  264. appreciate the QEMM FILES program, which allows you to add extra file 
  265. handles in AUTOEXEC.BAT or at the DOS prompt.  Again, FILES can be 
  266. loaded into High RAM, resulting in more conventional memory 
  267. conservation. FCBS and LASTDRIVE can also be handled in a similar way.
  268.  
  269.  
  270. MANIFEST
  271. ========
  272.  
  273. The award-winning Manifest program, included with every copy of QRAM, 
  274. works on any IBM-compatible PC.  Manifest will tell you how your system 
  275. is configured and how your applications are using memory, and will even 
  276. give you hints on how to improve your configuration.  Manifest's clear 
  277. and comprehensive manual will explain many things about memory, 
  278. including the varying specifications for memory use and how they work.
  279.  
  280.  
  281. How can I tell how useful QRAM will be on MY system?
  282. ====================================================
  283.  
  284. Many users have never had to consider the difference between exTENded 
  285. and exPANded memory, and are unlikely to have determined the number of 
  286. mappable pages that their EMS hardware and software can provide between 
  287. 640K and 1024K.  To help with this process, Quarterdeck has provided a 
  288. mini-analysis program called QTEST.  QTEST will examine your system and 
  289. will describe the extent of the benefits that QRAM can provide.  QTEST 
  290. is available free from the Quarterdeck BBS (310-314-3227; 2400 and 9600 
  291. bps modem operation is supported).  QTEST can also be found on 
  292. Compuserve and on many BBSs; on some BBSs, it may be found in compressed 
  293. files along with the Quarterdeck White Papers.
  294.  
  295. The Quarterdeck White Papers (of which this document is one example) 
  296. comprise technical notes, product information, and a QWHITE.COM, a 
  297. DESQview-specific file reader which can, when run under DESQview, search 
  298. White Papers for information, display, and print the technical notes for 
  299. you.  You don't need DESQview to get benefits from the White Papers. The 
  300. notes therein can be read with any text editor, word processor, or file 
  301. reader that can display ASCII text.  Many of these notes will help to 
  302. explain WHY DESQview is so beneficial, though!  The White Papers also 
  303. contain files which explain various issues related to QRAM, and to 
  304. memory management in general; you may find these quite helpful.
  305.  
  306.  
  307. Summary
  308. =======
  309.  
  310. In short, the QRAM package is valuable for anyone who wants to get the 
  311. most out of an 80286, 8086, or 8088 machine, especially those with EMS 
  312. 4.0 exPANded memory hardware or Chips & Technologies ShadowRAM 
  313. installed.  If its system requirements are fulfilled, you will find that 
  314. QRAM can substantially increase the amount of your precious conventional 
  315. memory.
  316.  
  317.  
  318.            Copyright (C) 1991 by Quarterdeck Office Systems 
  319.                 * * *   E N D   O F   F I L E * * *
  320.